#ifndef _BOSS_H_INCLUDED_
#define _BOSS_H_INCLUDED_
#include "core.h"
#include "threadPool.h"
#include "biz/biz.h"
class boss
{
private:
    core_data_t& core_data;
    threadPool workers;
    //bool is_worker_available();
    int status;
public:
    boss(core_data_t& core_data):
    core_data(core_data),workers(num_of_cpus),status(0)
    {}
    void boss_cycle();
    void readEventHandler(connection_t* conn);
    void writeEventHandler(connection_t* conn);
    void run();
    ~boss() = default;
};


#endif